Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.
型宣言子や型宣言キーワードが指定されていない変数に対して、変数名に応じて適用するデフォルトの変数型を設定します。
Defxxx Characterrange1[, Characterrange2[,...]]
Defxxx Characterrange1[, Characterrange2[,...]]
Characterrange: Letters that specify the range of variables that you want to set the default data type for.
Characterrange: デフォルトのデータ型の設定対象である変数の範囲を指定する文字。
xxx: Keyword that defines the default variable type:
xxx: デフォルトの変数型を定義するキーワード。
Keyword: Default variable type
キーワード:デフォルトの変数型
DefVar: Variant
DefVar: バリアント型
REM Prefix definitions for variable types:
REM 変数型のプレフィックスの定義:
DefBool b
DefBool b
DefDate t
DefDate t
DefDbL d
DefDbL d
DefInt i
DefInt i
DefLng l
DefLng l
DefObj o
DefObj o
DefVar v
DefVar v
Sub ExampleDefVar
Sub ExampleDefVar
vDiv=99 REM vDiv is an implicit variant
vDiv=99 REM ここで vDiv はバリアント型変数として解釈されます
vDiv="Hello world"
vDiv="Hello world"
end sub
end sub